"Scripted" forwarding to external email w/o allowing it globally?
Hey guys, I have question. Due to our user policy, users are allowed to have their emails forwarded to a private address up to 3 months after leaving the company. So, what we need to do is a forward to an external address BUT without allowing mail forwarding globally for all users. I know this option, we tested it but decided not to allow it globally, because of security issues. Is it possible, to realize such a scenario for a few people? Most things here are scripted by PHP, the PHP scripts call the appropriate Powershell commands, so it would be nice if we'd be able to to so by powershell cmds. Thanks in advance Sascha
June 2nd, 2009 4:58pm
You can create a contact for user's external email address and set it on user account to forward mails to external contact which is created for it.
New-MailContact -Name "Ted Bremer - External Contact" -ExternalEmailAddress "ted@gmail.com" -OrganizationalUnit "Marketing"
Set-Mailbox "Ted Bremer" -ForwardingAddress"Ted Bremer - External Contact"-DeliverToMailboxAndForward $True
(set -DeliverToMailboxAndForward to $false if you don't want a copy of email into mailbox)
New-MailContact
http://technet.microsoft.com/en-us/library/bb124519.aspx
Set-Mailbox
http://technet.microsoft.com/en-us/library/bb123981.aspx
Amit Tank | MVP Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
June 2nd, 2009 5:23pm
Hey, thanks for the quick reply, works perfectly! Best regards Sascha
June 2nd, 2009 6:09pm